package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_role
 * @author 
 */
public class SesUserRole implements Serializable {
    /**
     * ID,主键PK
     */
    private Long roleid;

    /**
     * 用户身份表ID
     */
    private Long useridentityid;

    /**
     * 用户身份类型表
     */
    private Long typeid;

    private static final long serialVersionUID = 1L;

    public Long getRoleid() {
        return roleid;
    }

    public void setRoleid(Long roleid) {
        this.roleid = roleid;
    }

    public Long getUseridentityid() {
        return useridentityid;
    }

    public void setUseridentityid(Long useridentityid) {
        this.useridentityid = useridentityid;
    }

    public Long getTypeid() {
        return typeid;
    }

    public void setTypeid(Long typeid) {
        this.typeid = typeid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserRole other = (SesUserRole) that;
        return (this.getRoleid() == null ? other.getRoleid() == null : this.getRoleid().equals(other.getRoleid()))
            && (this.getUseridentityid() == null ? other.getUseridentityid() == null : this.getUseridentityid().equals(other.getUseridentityid()))
            && (this.getTypeid() == null ? other.getTypeid() == null : this.getTypeid().equals(other.getTypeid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoleid() == null) ? 0 : getRoleid().hashCode());
        result = prime * result + ((getUseridentityid() == null) ? 0 : getUseridentityid().hashCode());
        result = prime * result + ((getTypeid() == null) ? 0 : getTypeid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roleid=").append(roleid);
        sb.append(", useridentityid=").append(useridentityid);
        sb.append(", typeid=").append(typeid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}